package com.softlab.retailwholesalesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "t_authority")
@AllArgsConstructor
@NoArgsConstructor
public class AuthorityEntity implements Serializable {

    @TableId(type= IdType.AUTO)
    private Integer authorityId;

    private Integer roleId;

    @TableField(exist = false)
    private String roleName;

    private Integer menuId;

    @TableField(exist = false)
    private String name;

    @TableField(fill= FieldFill.INSERT)
    private Date createTime;
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    private Integer isDelete;
}
